<%@ page language="java" contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@ taglib uri="/WEB-INF/taglib/emc.tld" prefix="emc"%>
<%@ taglib uri="/WEB-INF/taglib/emc-spring.tld" prefix="emc-spring"%>
<%@ taglib uri="/WEB-INF/taglib/spring-form.tld" prefix="spring-form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
div {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	border: 1px solid ;
	width: 35%;
}
label {
	float: left;
	width: 23px;
	margin-right: 10px;
	text-align: right;
	font-weight: bold;
	clear: left;
}
.title {
	font-size:20px;
	color: red;
}
.error {
	color: red;
	text-align: right;
}
</style>
<title>Insert title here</title>
</head>
<body>
	<div>
		<spring-form:form commandName="user" action="loign.do" method="post">
			<p>
				<emc:error />
			</p>
			<p>
				<label>name:</label>
				<input name="username" value="${param.username }" />
				<span class="error"><spring-form:errors path="username"  /></span>
			</p>
			<p>
				<label>age:</label>
				<input name="password" value="${param.password }" />
				<span class="error"><spring-form:errors path="password" /></span>
			</p>
			<emc:backReferer referer="initLogin.do" />
			<emc-spring:token/>
			<input type="submit" value="添加" />
		</spring-form:form>
	</div>
</body>
</html>